/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo902;

import ch02.*;

/**
 *
 * @author Administrator
 */
public class FiboDemo {
    public static void main(String args[]){
      int a[]=new int[20];
      a[0]=1;
      a[1]=1;
      a[2]=a[0]+a[1];
      a[3]=a[1]+a[2];
      a[19]=a[17]+a[18];

      for(int i=2;i<20;i++){
          a[i]=a[i-1]+a[i-2];
      }
      for(int i=0;i<20;i++){
          System.out.println(a[i]);
      }
    }
}
